package exam.system.business;

import java.util.HashMap;
import java.util.List;

public class BusinessServiceInfo extends HashMap<String, Object>{

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 1L;

	@SuppressWarnings("unchecked")
	public <T> List<T> getList(Object key) {
		return (List<T>) this.get(key);
	}
	
	@SuppressWarnings("unchecked")
	public <T> T getObject(Object key) {
		return (T) this.get(key);
	}
	
	public String getString(Object key) {
		return (String) this.get(key);
	}
	
	public Long getLong(Object key) {
		return (Long) this.get(key);
	}
}
